/*
 * @Description:
 * @Author: yangyihui
 * @Date: 2021-09-02 09:03:32
 * @LastEditors: yangyihui
 * @LastEditTime: 2021-09-27 17:55:17
 */
const state = () => ({
  prizeInfo:null,
  recommendLiveInfo: null,
  globalData:null
})

/**
 * prizeInfo：{
 *    prizeId：奖品的id
 *    activityType:活动类型 抽奖1  福利 2  邀请活动 3
 *    rId:抽奖活动才有的， 发布抽奖记录的ID，每发布一次，插入一条记录，就是这个记录ID
 * }
 *
 * globalData:{goodsRoomId, openFromBy, openByModule}
 * */
const mutations = {
  setPrizeInfo(state, val) {
    state.prizeInfo = val;
  },
  setRecommendLiveInfo(state, val) {
    state.recommendLiveInfo = val;
  },
  setGlobalData(state, val) {
    state.globalData = val
  }
}

export default {
  namespaced: true,
  state,
  mutations
}